﻿//* Copyright(C) 2005-2012, all rights reserved.
//*
//* The following code is copyrighted and contains proprietary information
/* and trade secrets of Foxit Software Inc.      
**************************************************************************
*/

/**
DocView事件接口类
*/


define(function (require, exports, module) {
    require('./Event.js');
    var Interface = require('../Interface');
    //接口列表
    var DocViewEventInterface = new Interface('IReader_DocViewEventHandler', ['OnPreDocViewResize', 'OnDocViewResize', 'OnDocViewScroll', 'OnDocViewZoom', 'OnPageIndexUpdated']);

    /**
     * @description Interface of the doc view event handler.
     * @class Interface of the doc view event handler.
     */
    FXREADER.Event.IReader_DocViewEventHandler = function () {

    };
    FXREADER.Event.IReader_DocViewEventHandler.prototype =
    {
    	/**
    	   * @description   trigger when the document has been opened.
    	*/
    	OnDocumentOpened: function(){
    			
    	},
    	 /**
         * @description  trigger before the size of the viewing area changed.
         */
        OnPreDocViewResize: function () {
        },
        /**
         * @description trigger when the size of the viewing area changed.
         */
        OnDocViewResize: function () {
        },
        /**
         * @description trigger when user scrolls.
         */
        OnDocViewScroll : function () {
        },
        /**
         * @description trigger when the zoom level of viewer changed.
         * @param {Number} scale current zoom level.
         */
        OnDocViewZoom: function (scale) {
        },
        /**
         * @description trigger when the current page index changed.
         * @param {Number} iOldPageIndex old page index(start from 0).
 		* @param {Number} iCurPageIndex current page index(start from 0).
         */
        OnPageIndexUpdated: function (iOldPageIndex,iCurPageIndex) {
        }
    };


    FXREADER.Event.IReader_DocViewEventHandler.EnsureInterface = function (subclass) {
        Interface.ensureImplements(subclass, DocViewEventInterface);
    };

    return FXREADER.Event.IReader_DocViewEventHandler;
});